package broker

import (
	"context"
)

func setSubscribeOption(k,v interface{}) SubscribeOption {
	return func(o *SubscribeOptions){
		if o.Context ==nil{
			o.Context = context.Background()
		}
		o.Context = context.WithValue(o.Context,k,v)
	}
}

func setBrokerOption(k,v interface{}) Option {
	return func(o *Options){
		if o.Context ==nil{
			o.Context = context.Background()
		}
		o.Context = context.WithValue(o.Context,k,v)
	}
}



